package me.zhao.proxy;

/**
 * 聚合方式实现代理
 * @author zhaoying
 *
 */
public class Car3 implements Moveable{
	public Car3(Car car){
		super();
		this.car = car;
	}
	
	private Car car;
	
	@Override
	public void move() {
		long starttime = System.currentTimeMillis();
		System.out.println("汽车开始行驶...");
		car.move();
		long endtime = System.currentTimeMillis();
		System.out.println("汽车结束行驶...行驶时间：" + (endtime-starttime));
		
	}
	
}
